Request XmTRANFER_FAILURE on Motif drops not within a drop zone. I don't
authorOwen Taylor <otaylor@redhat.com>
Tue, 22 Dec 1998 22:00:43 +0000 (22:00 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 22 Dec 1998 22:00:43 +0000 (22:00 +0000)
Tue Dec 22 17:01:43 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkdnd.c (gtk_drag_dest_handle_event):
Request XmTRANFER_FAILURE on Motif drops not within
a drop zone. I don't know why this is necessary,
but it is.

* gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
Motif flag field in response was getting wrong
values.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkdnd.c
gdk/x11/gdkdnd-x11.c
gtk/gtkdnd.c

index 4d3f601f7e31915eee066b0df678f5a38e957392..921525fc33f23a32e39132f0755dba85bd1941f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): 
+       Request XmTRANFER_FAILURE on Motif drops not within
+       a drop zone. I don't know why this is necessary,
+       but it is.
+
+       * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+       Motif flag field in response was getting wrong
+       values.
+
 Tue Dec 22 15:55:39 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkoptionmenu.c (gtk_option_menu_button_press): 
index 4d3f601f7e31915eee066b0df678f5a38e957392..921525fc33f23a32e39132f0755dba85bd1941f7 100644 (file)
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): 
+       Request XmTRANFER_FAILURE on Motif drops not within
+       a drop zone. I don't know why this is necessary,
+       but it is.
+
+       * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+       Motif flag field in response was getting wrong
+       values.
+
 Tue Dec 22 15:55:39 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkoptionmenu.c (gtk_option_menu_button_press): 
index 4d3f601f7e31915eee066b0df678f5a38e957392..921525fc33f23a32e39132f0755dba85bd1941f7 100644 (file)
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): 
+       Request XmTRANFER_FAILURE on Motif drops not within
+       a drop zone. I don't know why this is necessary,
+       but it is.
+
+       * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+       Motif flag field in response was getting wrong
+       values.
+
 Tue Dec 22 15:55:39 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkoptionmenu.c (gtk_option_menu_button_press): 
index 4d3f601f7e31915eee066b0df678f5a38e957392..921525fc33f23a32e39132f0755dba85bd1941f7 100644 (file)
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): 
+       Request XmTRANFER_FAILURE on Motif drops not within
+       a drop zone. I don't know why this is necessary,
+       but it is.
+
+       * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+       Motif flag field in response was getting wrong
+       values.
+
 Tue Dec 22 15:55:39 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkoptionmenu.c (gtk_option_menu_button_press): 
index 4d3f601f7e31915eee066b0df678f5a38e957392..921525fc33f23a32e39132f0755dba85bd1941f7 100644 (file)
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): 
+       Request XmTRANFER_FAILURE on Motif drops not within
+       a drop zone. I don't know why this is necessary,
+       but it is.
+
+       * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+       Motif flag field in response was getting wrong
+       values.
+
 Tue Dec 22 15:55:39 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkoptionmenu.c (gtk_option_menu_button_press): 
index 4d3f601f7e31915eee066b0df678f5a38e957392..921525fc33f23a32e39132f0755dba85bd1941f7 100644 (file)
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): 
+       Request XmTRANFER_FAILURE on Motif drops not within
+       a drop zone. I don't know why this is necessary,
+       but it is.
+
+       * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+       Motif flag field in response was getting wrong
+       values.
+
 Tue Dec 22 15:55:39 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkoptionmenu.c (gtk_option_menu_button_press): 
index 4d3f601f7e31915eee066b0df678f5a38e957392..921525fc33f23a32e39132f0755dba85bd1941f7 100644 (file)
@@ -1,3 +1,14 @@
+Tue Dec 22 17:01:43 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkdnd.c (gtk_drag_dest_handle_event): 
+       Request XmTRANFER_FAILURE on Motif drops not within
+       a drop zone. I don't know why this is necessary,
+       but it is.
+
+       * gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
+       Motif flag field in response was getting wrong
+       values.
+
 Tue Dec 22 15:55:39 1998  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkoptionmenu.c (gtk_option_menu_button_press): 
index 9c088cbc62c36fb4fc35ab52e6f94c9143c2faf9..0578a8108946bc93b85bfbe113107f408875b977 100644 (file)
@@ -2852,12 +2852,12 @@ gdk_drop_reply (GdkDragContext   *context,
       xev.xclient.data.b[0] = XmDROP_START | 0x80;
       xev.xclient.data.b[1] = local_byte_order;
       if (ok)
-       xev.xclient.data.s[2] = XmDROP_COPY | 
+       xev.xclient.data.s[1] = XmDROP_COPY | 
                                (XmDROP_SITE_VALID << 4) |
                                (XmDROP_NOOP << 8) |
                                (XmDROP << 12);
       else
-       xev.xclient.data.s[2] = XmDROP_NOOP | 
+       xev.xclient.data.s[1] = XmDROP_NOOP | 
                                (XmNO_DROP_SITE << 4) |
                                (XmDROP_NOOP << 8) |
                                (XmDROP_CANCEL << 12);
index 9c088cbc62c36fb4fc35ab52e6f94c9143c2faf9..0578a8108946bc93b85bfbe113107f408875b977 100644 (file)
@@ -2852,12 +2852,12 @@ gdk_drop_reply (GdkDragContext   *context,
       xev.xclient.data.b[0] = XmDROP_START | 0x80;
       xev.xclient.data.b[1] = local_byte_order;
       if (ok)
-       xev.xclient.data.s[2] = XmDROP_COPY | 
+       xev.xclient.data.s[1] = XmDROP_COPY | 
                                (XmDROP_SITE_VALID << 4) |
                                (XmDROP_NOOP << 8) |
                                (XmDROP << 12);
       else
-       xev.xclient.data.s[2] = XmDROP_NOOP | 
+       xev.xclient.data.s[1] = XmDROP_NOOP | 
                                (XmNO_DROP_SITE << 4) |
                                (XmDROP_NOOP << 8) |
                                (XmDROP_CANCEL << 12);
index 68379c958325506b484ed507bb5c25dddf34af21..1aa4bbcbc2991045731074af2dcfdb012b6d1a9b 100644 (file)
@@ -896,7 +896,11 @@ gtk_drag_dest_handle_event (GtkWidget *toplevel,
              gdk_drag_status (context, 0, event->dnd.time);
          }
        else if (event->type == GDK_DROP_START)
-         gdk_drop_reply (context, data.found, event->dnd.time);
+         {
+           gdk_drop_reply (context, data.found, event->dnd.time);
+            if (context->protocol == GDK_DRAG_PROTO_MOTIF)
+             gtk_drag_finish (context, FALSE, FALSE, event->dnd.time);
+         }
       }
       break;